package com.woniuxy.microstockserver.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.microstockserver.bean.OutStockBean;
import com.woniuxy.microstockserver.bean.PageRequestBean;

/**
 * @author 赵雄伟
 * 出库单service
 */
public interface IOutStockService {
    /**
     * 分页、分类、模糊查询所有出库单
     * @param pageRequestBean
     * @param outStockBean
     * @return
     */
    PageInfo<OutStockBean> findAllOutStockBean(PageRequestBean pageRequestBean, OutStockBean outStockBean);

    /**
     * 新增出库单：含正常出库，销售出库，采购退货入库
     * @param outStockBean
     * @return
     */
    Long saveOutStockBean(OutStockBean outStockBean);

    /**
     * 根据id查询出库单的详情
     * @param id
     * @return
     */
    OutStockBean findOutStockAndGoodsDetail(Long id);

    /**
     * 修改出库单
     * @param outStockBean
     * @return
     */
    Long upadteOutStockBean(OutStockBean outStockBean);
}
